/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package di.persistence.object.impl;

import di.persistence.dao.DIHibernateDaoSupport;
import di.persistence.dao.PositionDao;
import di.persistence.dao.UserTypeDao;
import di.persistence.entities.Position;
import di.persistence.object.UserTypeBO;
import di.persistence.entities.UserType;
import di.persistence.object.PositionBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

/**
 *
 * @author Kilian Ito
 */

@Service("PositionBO")
public class PositionBOImpl implements PositionBO{

    @Autowired
    PositionDao positionDao;
    
    public void setPositionDao(PositionDao positionDao) {
        this.positionDao = positionDao;
    }

    @Override
    public void save(Position position) {
        positionDao.save(position);
    }

    @Override
    public void update(Position position) {
        positionDao.update(position);
    }

    @Override
    public void delete(Position position) {
        positionDao.delete(position);
    }
}
